import TIM from 'tim-js-sdk'
import COS from 'cos-js-sdk-v5'
import { IMAppId } from './constants';

let options = {
  SDKAppID: IMAppId
};
let tim = TIM.create(options); 
// 注册 COS SDK 插件
tim.registerPlugin({'cos-js-sdk': COS});
tim.setLogLevel(2);


export default tim